import axios from "../../axios.js"
// 计划管理接口
export default {
  // 删除计划
  deletePlanApi(data, binding) {
    return axios({
      url: '/crm/deletePlan',
      method: 'post',
      data
    })
  },
  // 过期计划
  overduePlanApi(data, binding) {
    return axios({
      url: '/crm/overdue',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 所有计划
  AllPlanApi(data, binding) {
    return axios({
      url: '/crm/selectAll',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 待完成的计划
  selectConductApi(data, binding) {
    return axios({
      url: '/crm/selectConduct',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },

  //获取所有未读客户
  getAllUnreadApi(data, binding) {
    return axios({
      url: '/crm/unread',
      method: 'get',
      params: data,
      headers: {
        "binding": binding
      }
    })
  },
  // 已完成计划
  finishPlanApi(data, binding) {
    return axios({
      url: '/crm/selectFinish',
      method: 'get',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  //未完成计划
  noFinishPlanApi(data, binding) {
    return axios({
      url: '/crm/selectNoFinish',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },

  // 查询金融顾问下的客户数据
  selectSignApi(data, binding) {
    return axios({
      url: '/crm/selectSign',
      method: 'get',
      data,
      headers: {
        "binding": binding
      }
    })
  },

  // 修改计划
  updatePlanApi(data, binding) {
    return axios({
      url: '/crm/updatePlan',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },

}
